package com.ark.cloud.javacallnative.modules.storage.service.impl;

import com.ark.cloud.javacallnative.entity.AircraftLaunchCmd;
import com.ark.cloud.javacallnative.modules.storage.mapper.AircraftLaunchCmdMapper;
import com.ark.cloud.javacallnative.modules.storage.service.AircraftLaunchCmdService;
import com.ark.cloud.javacallnative.util.UUIDUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/9/2  下午5:24
 * @description
 */
@Service
public class AircraftLaunchCmdServiceImpl implements AircraftLaunchCmdService {

    @Autowired
    AircraftLaunchCmdMapper aircraftLaunchCmdMapper;

    @Override
    public void saveAircraftLaunchCmdInfo(AircraftLaunchCmd aircraftLaunchCmd) {
        // 设置UUID
        aircraftLaunchCmd.setId(UUIDUtil.next());

        System.out.println("aircraftLaunchCmd:"+aircraftLaunchCmd);
        aircraftLaunchCmdMapper.saveAircraftLaunchCmdInfo(aircraftLaunchCmd);
    }

}
